package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 水稳拌合站预警信息业务对象 zj_n_warning_sw
 *
 * @author tll
 * @date 2024-09-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ZjNWarningSwBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 预警类型(1水稳2沥青)
     */
    @NotBlank(message = "预警类型(1水稳2沥青)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 预警级别(1初级2中级3高级)
     */
    @NotBlank(message = "预警级别(1初级2中级3高级)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String grade;

    /**
     * 报警时间
     */
    @NotNull(message = "报警时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date insterTime;

    /**
     * 报警信息
     */
    @NotBlank(message = "报警信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 关联业务数据id
     */
    @NotBlank(message = "关联业务数据id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessId;

    /**
     * 短信发送状态(成功返0 失败返1)
     */
    @NotBlank(message = "短信发送状态(成功返0 失败返1)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 处置状态(字典值)
     */
    @NotNull(message = "处置状态(字典值)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer disposalStatus;

    /**
     * 拌合站编号
     */
    @NotBlank(message = "拌合站编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stationCode;

    /**
     * 标段
     */
    @NotBlank(message = "标段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptCode;

    /**
     * 业务数据时间
     */
    @NotBlank(message = "业务数据时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String buzTime;

    /**
     * 配比名称
     */
    @NotBlank(message = "配比名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String matchName;

    /**
     * 预警项目
     */
    @NotBlank(message = "预警项目不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warnItem;

    /**
     * 超出比例
     */
    @NotBlank(message = "超出比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outRange;
    /**
     * 误差比例
     */
    @NotBlank(message = "误差比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cz;

    private String startTime;
    private String endTime;
}
